﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace MainService.UISERVER
{
    [XmlRoot("systems")]
    public class Systems 
    {
        [XmlElement("system")]
        public List<AppSystem> Childs = new List<AppSystem>();    
    }
    public  class AppSystem
    {
        [XmlAttribute("appSystemName")]
        public string appSystemName { get; set; }
        [XmlAttribute("solutionName")]
        public string solutionName { get; set; }
        [XmlAttribute("solutionChinaName")]
        public string solutionChinaName { get; set; }
        [XmlAttribute("solutionVersion")]
        public string solutionVersion { get; set; }
        [XmlAttribute("solutionId")]
        public string solutionId { get; set; }
        [XmlAttribute("userId")]
        public string userId { get; set; }
        [XmlAttribute("id")]
        public string id { get; set; }
        [XmlIgnore]
        public string appSystemDescription { get; set; }
        [XmlElement("appSystemDescription",typeof(CDATA))]
        public CDATA appSystemDescriptionCDATA 
        {
            get 
            {
                return new CDATA(appSystemDescription);
            }
            set 
            {
                appSystemDescription = value.InnerXML;
            }
        }
        [XmlElement("appSystemCreatetime")]
        public string appSysteCreateTime { get; set; }
        [XmlIgnore]
        public string solutionDescription { get; set; }
        [XmlElement("solutionDescription", typeof(CDATA))]
        public CDATA solutionDescriptionCDAA
        {
            get 
            {
                return new CDATA(solutionDescription);
            }
            set 
            {
                solutionDescription = value.InnerXML;
            }
        }
    }
}
